home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pctchnqs / 1990 / number5 / indmem.c < prev    next >
Text File  |  1990-09-07  |  363b  |  24 lines

  1. struct screencoords 
  2.   { 
  3.   int     x; 
  4.   int     y; 
  5.   } coords; 
  6.  
  7. void printcoords( struct screencoords *val ); 
  8.  
  9. main() 
  10.  
  11. coords.x = 100; 
  12. coords.y = 200; 
  13.  
  14. printcoords( &coords ); 
  15.  
  16.  
  17. void printcoords( struct screencoords *val ) 
  18.   printf( "X coordinate = %d\n", val->x ); 
  19.   printf( "Y coordinate = %d\n", val->y ); 
  20.